package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class Guaranteebill {

    public static final int STORAGE_STATE = 1;
    public static final int CHECK_STATE = 2;
    public static final int WAITAUTID_STATE = 3;
    public static final int AUTIDSUCCESS_STATE = 4;
    public static final int BILL_STATE = 5;
    public static final int REJUEST_STATE = 0;

    private Long id;
    //保单号
    private String number;
    //整式客户Id
    private LatentClient applicant;
    //开启业务的时间
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "CMT+8")
    private Date vdate;

    //登录人的id
    private Employee op;

    //在商品表计算
    private Integer totalprice;

    //车id
    private Carinfo carinfo;

    //保单的状态,暂存1, 批改2, 提交未审核3, 审核成功4, 缴费5
    private int state;

    //审核id
    private Employee audit;

    //保险的年数
    private Integer limityear;

    //批改意见
    private String info;

    //审核时间
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "CMT+8")
    private Date auditdate;

    //起保开始
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "CMT+8")
    private Date begindate;
    //起保结束
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "CMT+8")
    private Date enddate;
}